package com.sanyang.lawyer.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanyang.lawyer.entity.HrFlexigrid;
import com.sanyang.lawyer.entity.System_user;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

public interface System_userMapper extends BaseMapper<System_user> {
    public List<System_user> select(Map map);
    public System_user getById(int id);
    public System_user login(String user_name,String user_pwd);
    public String getBypwd(int id);
    public void updatePwd(int id,String pwd);
    public void updateUser(int userid,String userName,int roleName);
    public void insert(String userName,int roleName,int hrName,String password);
    //根据user_name查询全部
    public System_user getByName(String username);
    public Integer selectCount(Map map);
    public int getByEmpId(int empId);
    public int getByuserName(String userName);
}
